﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace SpaceInvaders
{
    abstract class DrawObject
    {
        protected int x, y;
        protected int xOffset, yOffset;
        protected double xScale, yScale;
        public void setSceneParams(int xO,int yO, double xS, double yS)
        {
            xOffset = xO;
            yOffset = yO;
            xScale = xS;
            yScale = yS;
        }
        public void setSceneCoords(int xIn, int yIn)
        {
            x = (int)xScale * xIn + xOffset;
            y = (int)yScale * yIn + yOffset;
        }
        public virtual void Draw(Graphics g)
        {
            return;
        }
    }
}
